package com.example.aicloud.config;

import org.springframework.ai.openai.OpenAiChatClient;
import org.springframework.ai.openai.OpenAiChatOptions;
import org.springframework.ai.openai.api.OpenAiApi;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.retry.support.RetryTemplate;

@Configuration
public class ChatClientConfig {


    @Bean
    public DeepSeekChatClient deepSeekChatClient(@Value("${spring.ai.deepseek.base-url}") String baseUrl,
                                                 @Value("${spring.ai.deepseek.api-key}") String apiKey) {
        return new DeepSeekChatClient(baseUrl, apiKey);
    }
}
